package com.fx.usercenter.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fx.usercenter.common.BaseResponse;
import com.fx.usercenter.model.domain.User;
import org.springframework.web.servlet.HandlerInterceptor;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author Administrator
* @description 针对表【user(用户)】的数据库操作Service
* @createDate 2024-07-27 15:31:20
*/
public interface UserService extends IService<User> {
    long Register(String userAccount,String userPassword,String plantCode);

    User Login(String userAccount, String userPassword, HttpServletRequest request);


    List findUsers();

    long deleteById(int id);

    long loginOut(HttpServletRequest request);

    long updateUser(User user,HttpServletRequest request);

    int addUser(User user);

    Page<User> limitSelectUsers();

    List findUsers(String userName, int gender, HttpServletRequest request);

    long updateRole(String userAccount,int userRole,HttpServletRequest request);
}
